import { BaseService } from './base-service'

class SsoService extends BaseService{

  /**
   *  飞书登录
   *
   * @author ylq
   * @param  {Object} params
   * @param  {String} params.key
   * @param  {String} params.code
   * @returns
   * @memberof SSOService
   */
  // fsLogin(params) {
  //   console.log(29,'fsLogin',params)
  //   return this.request({
  //     method: 'get',
  //     url: `/sso/feishu/${params.key}?code=${params.code}`,
  //   })
  // }
  fsLogin(params) {
    console.log(29,'fsLogin',params)
    return this.request({
      method: 'post',
      url: `/api/login`,
      params
    })
  }
}

export const ssoService = new SsoService()
